﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TravelGenerator.BusinessObjects.ObjectValidator;

namespace TravelGenerator.BusinessObjects.ModelObjects
{
    public partial class Pictures : IValidateEntity
    {
        #region IValidateEntity Members

        /// <summary>
        /// Checks datas element.
        /// </summary>
        /// <returns>CheckResultCollection</returns>
        public CheckResultCollection CheckElement()
        {
            CheckResultCollection checkResult = CheckResultCollection.Create(this);

            checkResult.NotNullProperty(this.PicturesURL, System.Diagnostics.TraceLevel.Error, ResModelObjects.BOPictures_Check_URL);
            checkResult.NotNullProperty(this.SizeX, System.Diagnostics.TraceLevel.Error, ResModelObjects.BOPictures_Check_SizeX);
            checkResult.NotNullProperty(this.SizeY, System.Diagnostics.TraceLevel.Error, ResModelObjects.BOPictures_Check_SizeY);
            checkResult.NotNullProperty(this.Title, System.Diagnostics.TraceLevel.Error, ResModelObjects.BOPictures_Check_Title);
            checkResult.NotNullProperty(this.Description, System.Diagnostics.TraceLevel.Error, ResModelObjects.BOPictures_Check_Description);

            return checkResult;
        }

        #endregion
    }
}
